package com.hrpmar.pojo;


import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import java.util.Date;


/**
 * 药品盘点主表
 */
public class Inventorying extends BasePojo {

  private Integer invId;                    //药品盘点序号
  private String invNum;                    //盘点单号
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date invDate;                     //盘点日期
  private String invPers;                  //盘点人员
  private int invState;                     //盘点状态
  private String invAuditper;              //审核人员
  private int invAuditstate;                //是否审核

  /**
   * 创建人，创建时间，修改人，修改时间 继承自父类
   * @return
   */

  private Worker workerPers;             //(盘点人员)医护人员对象
  private Worker workerAuditper;        //(审核人员)医护人员对象

  public Integer getInvId() {
    return invId;
  }

  public void setInvId(Integer invId) {
    this.invId = invId;
  }

  public String getInvNum() {
    return invNum;
  }

  public void setInvNum(String invNum) {
    this.invNum = invNum;
  }

  public Date getInvDate() {
    return invDate;
  }

  public void setInvDate(Date invDate) {
    this.invDate = invDate;
  }

  public String getInvPers() {
    return invPers;
  }

  public void setInvPers(String invPers) {
    this.invPers = invPers;
  }

  public int getInvState() {
    return invState;
  }

  public void setInvState(int invState) {
    this.invState = invState;
  }

  public String getInvAuditper() {
    return invAuditper;
  }

  public void setInvAuditper(String invAuditper) {
    this.invAuditper = invAuditper;
  }

  public int getInvAuditstate() {
    return invAuditstate;
  }

  public void setInvAuditstate(int invAuditstate) {
    this.invAuditstate = invAuditstate;
  }

  public Worker getWorkerPers() {
    return workerPers;
  }

  public void setWorkerPers(Worker workerPers) {
    this.workerPers = workerPers;
  }

  public Worker getWorkerAuditper() {
    return workerAuditper;
  }

  public void setWorkerAuditper(Worker workerAuditper) {
    this.workerAuditper = workerAuditper;
  }

  @Override
  public String toString() {
    return "Inventorying{" +
            "invId=" + invId +
            ", invNum='" + invNum + '\'' +
            ", invDate=" + invDate +
            ", invPers='" + invPers + '\'' +
            ", invState=" + invState +
            ", invAuditper='" + invAuditper + '\'' +
            ", invAuditstate=" + invAuditstate +
            ", workerPers=" + workerPers +
            ", workerAuditper=" + workerAuditper +
            '}';
  }
}
